package com.longjianghuasheng.logistics.business.mine.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.longjianghuasheng.logistics.R
import com.longjianghuasheng.logistics.databinding.ItemProblemBinding
import com.longjianghuasheng.logistics.entity.Help

class ProblemAdapter :
    BaseQuickAdapter<Help, BaseDataBindingHolder<ItemProblemBinding>>(R.layout.item_problem) {
    var listener = { position: Int ->

    }

    override fun convert(holder: BaseDataBindingHolder<ItemProblemBinding>, item: Help) {
        holder.dataBinding?.run {


            stvHelp.setLeftString(item.title)
            stvHelp.setOnSuperTextViewClickListener {
                listener.invoke(holder.absoluteAdapterPosition)
            }
        }
    }
}